package NGUYENVANDOAN.EXAM01.BAITOAN01;

public class OctagonEntity {
    private double side = 0;

    public OctagonEntity(double side) {
        this.side = side;
    }

    /**
     * @return the side
     */
    public double getSide() {
        return side;
    }

    /**
     * @param side the side to set
     */
    public void setSide(double side) {
        this.side = side;
    }

    public double Area(OctagonEntity obj) {
        return (2 + 4 / Math.sqrt(2) * obj.getSide() * obj.getSide());
    }

    public double Perimeter(OctagonEntity obj) {
        return (8 * obj.getSide());
    }
}
